<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>控制标签</title>
</head>
<body>
	<p>if...else 例子</p>
	<s:if test="tag.bValue">
		跳转到true
	</s:if><s:else>
		跳转到false
	</s:else>
	
	<br/>
	<s:if test="tag.intValue > 10">
		IntValue 值为<s:property value="tag.intValue"/>,大于10
	</s:if><s:else>
		IntValue 值为<s:property value="tag.intValue"/>,小于10
	</s:else>
	
	<br/>
	<p>遍历例子</p>
	<table style="margin-left:15px">
	<s:iterator value="tag.listValue">
		<tr><td><s:property /></td></tr>
	</s:iterator>
	</table>
	
	<p>遍历对象例子</p>
	<table style="margin-left:15px">
		<s:iterator value="tag.listObj" >
			<tr>
				<td>
					名字:<s:property value="firstName" />
				</td> 
				<td>
					年纪:<s:property value="age" />
				</td>
			</tr>
		</s:iterator>
	</table>
	
<br/>
<p><a href="http://localhost:8080/docs/WW/struts-control-tags.html" >文档</a></p>

</body>
</html>